package web.handle;

import javax.faces.bean.ManagedBean;
import javax.faces.context.FacesContext;

@ManagedBean
public class CurrentUserBean {
	private String username;
	
	public CurrentUserBean(){}

	public String getUsername() {
		username = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
}
